﻿@using EquipmentManager.Entities
@model EquipmentManager.Models.CreateModel<EquipmentBase>

@{
    ViewBag.Title = "Детали оборудования " + Model.Instance.Name;
}

@section menu {
    <section class="featured">
            <div class="master-menu">
                @{Html.RenderPartial("OperatorMenu");}
            </div>
    </section>
}

<h2>Детали оборудования @Model.Instance.Name</h2>
   
    <table class="bordered">
         <tr>
            <td class="vertical-header">Инвентарный номер</td>
            <td>@Html.DisplayFor(model => model.Instance.Number, new { @class = "" })</td>
        </tr>
         <tr>
            <td class="vertical-header">Серийный номер</td>
            <td>@Html.DisplayFor(model => model.Instance.SerialNumber, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">Название</td>
            <td>@Html.DisplayFor(model => model.Instance.Name, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">Описание</td>
            <td>@Html.DisplayFor(model => model.Instance.Description, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">Год</td>
            <td>@Html.DisplayFor(model => model.Instance.Year, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">Рабочее место</td>
            <td>@Html.DisplayFor(model => model.Instance.WorkPlace, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">Состояние</td>
            <td>@Html.DisplayFor(model => model.Instance.State, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">Заметка</td>
            <td><pre>@Html.DisplayFor(model => model.Instance.Note, new { @class = "" })</pre></td>
        </tr>
    </table>
    
    <p>
        @Html.ActionLink("Назад", "Equipments", new { @PostOfficeId = Model.ParentId }, new { @class = "common-btn-large BlueColor" })
    </p>
